import request from '@/utils/request'
const api = {
// 新增仓库
  AddWarehouse(data, method) {
    return request({
      url: '/api/Warehouse/AddWarehouse',
      method: method || 'post',
      data: data
    })
  },
  // 分页获取匹配的仓库数据
  GetWarehousePageDataList(data, method) {
    return request({
      url: '/api/Business/GetWarehousePageDataList',
      method: method || 'post',
      data: data
    })
  },
  // 获取匹配的可用仓库分区数据【视图对象，带有货架数量】
  GetMatchWarehouseAreas(data, method) {
    return request({
      url: '/api/Business/GetMatchWarehouseAreas',
      method: method || 'post',
      data: data
    })
  },
  // 分页获取库位信息
  GetMatchPageWarehouseAreas(data, method) {
    return request({
      url: '/api/WarehouseAreaShelf/GetMatchPageWarehouseAreasShelf',
      method: method || 'post',
      data: data
    })
  },
  // 新增仓库分区（新增分区名字）
  AddWarehouseArea(data, method) {
    return request({
      url: '/api/WarehouseArea/AddWarehouseArea',
      method: method || 'post',
      data: data
    })
  },
  // 当前仓库详情
  getwareaInfo(data, method) {
    return request({
      url: '/api/Warehouse/GetSingleWarehouse',
      method: method || 'post',
      data: data
    })
  },
  // 保存修改仓库数据
  saveUpateWareHouse(data, method) {
    return request({
      url: '/api/Warehouse/UpdateWarehouse',
      method: method || 'post',
      data: data
    })
  },
  // 保存修改仓库数据
  getAreasInfo(data, method) {
    return request({
      url: '/api/WarehouseArea/GetSingleWarehouseArea',
      method: method || 'post',
      data: data
    })
  },
  // 保存修改仓库数据
  savaUpadateArea(data, method) {
    return request({
      url: '/api/WarehouseArea/UpdateWarehouseArea',
      method: method || 'post',
      data: data
    })
  },
  // 库区删除
  deleteArea(data, method) {
    return request({
      url: '/api/WarehouseArea/DeleteWarehouseArea',
      method: method || 'post',
      data: data
    })
  },
  // 库位新增
  addLocation(data, method) {
    return request({
      url: '/api/WarehouseAreaShelf/AddAreaShelfByCount',
      method: method || 'post',
      data: data
    })
  },
  // 库位删除
  deleLocation(data, method) {
    return request({
      url: '/api/WarehouseAreaShelf/DeleteWarehouseAreaShelf',
      method: method || 'post',
      data: data
    })
  },
  // 库位启用禁用
  IsDisabledWarehouseAreaShelf(data, method) {
    return request({
      url: 'api/WarehouseAreaShelf/IsDisabledWarehouseAreaShelf  ',
      method: method || 'post',
      data: data
    })
  },
  // 仓库作废
  DeleteWarehouse(data, method) {
    return request({
      url: '/api/Warehouse/DeleteWarehouse',
      method: method || 'post',
      data: data
    })
  },
  // 设置仓库状态
  setWareState(data, method) {
    return request({
      url: '/api/Warehouse/SetWarehouseState',
      method: method || 'post',
      data: data
    })
  },
  // 供应商列表分页带查询
  GetMatchPageSuppliers(data, method) {
    return request({
      url: '/api/Supplier/GetMatchPageSuppliers',
      method: method || 'post',
      data: data
    })
  },
  // 新增供应商
  AddSupplier(data, method) {
    return request({
      url: '/api/Supplier/AddSupplier',
      method: method || 'post',
      data: data
    })
  },
  // 查看供应商详情
  GetSingleSupplier(data, method) {
    return request({
      url: '/api/Supplier/GetSingleSupplier',
      method: method || 'post',
      data: data
    })
  },
  // 修改供应商
  UpdateSupplier(data, method) {
    return request({
      url: '/api/Supplier/UpdateSupplier',
      method: method || 'post',
      data: data
    })
  },
  // 删除供应商
  DeleteSupplier(data, method) {
    return request({
      url: '/api/Supplier/DeleteSupplier',
      method: method || 'post',
      data: data
    })
  },
  // 禁用启用供应商
  ExcuteSupplier(data, method) {
    return request({
      url: '/api/Supplier/ExcuteSupplier',
      method: method || 'post',
      data: data
    })
  },
  // **************************采购********************************start
  // 采购列表
  getAllPurchaseList(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/GetMatchPagePurchaseOrders',
      method: method || 'post',
      data: data
    })
  },
  // 获取采购类型
  GetAllPurchaseType(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/GetAllPurchaseType',
      method: method || 'post',
      data: data
    })
  },
  // 采购-新增采购
  AddPurchaseOrder(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/AddPurchaseOrder',
      method: method || 'post',
      data: data
    })
  },
  // 查看采购详情
  getPurINfo(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/GetSinglePurchaseOrder',
      method: method || 'post',
      data: data
    })
  },
  // 查看采购详情
  confirmPuchase(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/SurePurchaseOrder',
      method: method || 'post',
      data: data
    })
  },
  // 采购-复制重开
  AddCBPurchaseOrder(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/AddPurchaseOrder',
      method: method || 'post',
      data: data
    })
  },
  // 采购-更新采购
  UpdatePurchaseOrder(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/UpdatePurchaseOrder',
      method: method || 'post',
      data: data
    })
  },
  // 采购-确认到货
  ConfirmGoodsPurchaseOrder(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/ConfirmGoodsPurchaseOrder',
      method: method || 'post',
      data: data
    })
  },
  // 采购-删除采购单
  DeletePurchaseDetail(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/DeletePurchaseOrder',
      method: method || 'post',
      data: data
    })
  },
  // 仓库-获取匹配的可用仓库数据
  getWarehouseList(data, method) {
    return request({
      url: '/api/Warehouse/GetMatchWarehouses',
      method: method || 'post',
      data: data
    })
  },

  // 入库-采购入库列表分页
  getWarehousingList(data, method) {
    return request({
      url: '/api/InStockBill/GetMatchPageCGInStockBills',
      method: method || 'post',
      data: data
    })
  },
  // 入库-入库物料明细
  getStockGoodsInfo(data, method) {
    return request({
      url: '/api/InStockBill/GetStockGoodsByInStock',
      method: method || 'post',
      data: data
    })
  },
  // 退货/入库-采购单明细
  getRuKuPurInfo(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/GetMatchPurchaseOrders',
      method: method || 'post',
      data: data
    })
  },
  // 入库-新建采购入库
  AddCGInStockBill(data, method) {
    return request({
      url: '/api/InStockBill/AddCGInStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 入库-判断当前用户是否存在未确认入库单
  IsInStockBillByUser(data, method) {
    return request({
      url: 'api/InStockBill/IsInStockBillByUser ',
      method: method || 'post',
      data: data
    })
  },
  // 入库-编辑采购入库
  UpdateInStockBill(data, method) {
    return request({
      url: '/api/InStockBill/UpdateInStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 入库-获取入库单详情
  GetSingleInStockBill(data, method) {
    return request({
      url: 'api/InStockBill/GetSingleInStockBill',
      method: method || 'post',
      data: data
    })
  },

  // 出库-成品出库列表
  GetPageProductOutStockBills(data, method) {
    return request({
      url: '/api/ProductOutStockBill/GetPageProductOutStockBills',
      method: method || 'post',
      data: data
    })
  },

  // 出库-半成品出库列表
  GetPageSemiProductOutStockBills(data, method) {
    return request({
      url: '/api/ProductOutStockBill/GetPageSemiProductOutStockBills',
      method: method || 'post',
      data: data
    })
  },
  // 入库-删除入库单单条
  DeleteInStockBill(data, method) {
    return request({
      url: '/api/InStockBill/DeleteInStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 入库-删除入库单单条
  SureInStockBill(data, method) {
    return request({
      url: '/api/InStockBill/SureInStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 入库-获取指定仓库的库区 库位信息
  GetStockQueryAreaTreeView(data, method) {
    return request({
      url: '/api/Business/GetStockAreaTreeView',
      method: method || 'post',
      data: data
    })
  },
  // 库存查询-物料库存分页查询列表
  GetMatchPageStockGoodsData(data, method) {
    return request({
      url: '/api/SelectStockGoods/GetMatchPageStockGoodsData',
      method: method || 'post',
      data: data
    })
  },
  // 盘点-分页获取盘点单列表
  GetMatchPageTakeStocks(data, method) {
    return request({
      url: '/api/TakeStock/GetMatchPageTakeStockBillList',
      method: method || 'post',
      data: data
    })
  },
  // 盘点-根据出库获取物料清单
  GetWarehousesBatchStockGoods(data, method) {
    return request({
      url: '/api/Warehouse/QueryMatchPanDianStockGoodsList',
      method: method || 'post',
      data: data
    })
  },
  // 盘点-获取盘点单详情
  GetSingleTakeStock(data, method) {
    return request({
      url: '/api/TakeStock/GetTakeStockBillDetail',
      method: method || 'post',
      data: data
    })
  },
  // 盘点-获取当前仓库是否存在未确认盘点单
  GetTakeStockNo(data, method) {
    return request({
      url: '/api/TakeStock/GetTakeStockNo',
      method: method || 'post',
      data: data
    })
  },
  // 盘点-新增盘点单
  AddTakeStock(data, method) {
    return request({
      url: '/api/TakeStock/CreateTakeStockBill',
      method: method || 'post',
      data: data
    })
  },

  // 盘点-修改盘点单
  UpdateTakeStockBill(data, method) {
    return request({
      url: '/api/TakeStock/UpdateTakeStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 盘点-确认完成盘点单
  SureFinishTakeStock(data, method) {
    return request({
      url: '/api/TakeStock/SureFinishTakeStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 盘点-删除盘点单和明细数据
  DeleteTakeStock(data, method) {
    return request({
      url: '/api/TakeStock/DeleteTakeStockBill',
      method: method || 'post',
      data: data
    })
  },

  // 获得某个盘点单的盘点明细列表数据
  QueryTakeStockBillsMxList(data, method) {
    return request({
      url: '/api/TakeStock/QueryTakeStockBillsMxList',
      method: method || 'post',
      data: data
    })
  },

  //判断目标仓库是否存在待确认的盘点单
  JuadgeIsHaveTakeStockBill(data, method) {
    return request({
      url: '/api/TakeStock/JuadgeIsHaveTakeStockBill',
      method: method || 'post',
      data: data
    })
  },
  // **************************退货***********************************
  // 退货-分页获取列表
  GetMatchPageStockGoodsCredits(data, method) {
    return request({
      url: '/api/StockGoodsCredit/GetMatchPageStockGoodsCredits',
      method: method || 'post',
      data: data
    })
  },
  // 退货-退货物料明细
  GetMatchPageStockGoodsCreditDetails(data, method) {
    return request({
      url: '/api/StockGoodsCredit/GetMatchPageStockGoodsCreditDetails',
      method: method || 'post',
      data: data
    })
  },
  // 退货-获取退货类型
  GetAllCreditType(data, method) {
    return request({
      url: '/api/StockGoodsCredit/GetAllCreditType',
      method: method || 'post',
      data: data
    })
  },
  // 退货-新增物品退货单
  AddStockGoodsCredit(data, method) {
    return request({
      url: '/api/StockGoodsCredit/AddStockGoodsCredit',
      method: method || 'post',
      data: data
    })
  },
  // 退货-获取详情
  GetSingleStockGoodsCredit(data, method) {
    return request({
      url: '/api/StockGoodsCredit/GetSingleStockGoodsCredit',
      method: method || 'post',
      data: data
    })
  },
  // 退货-修改退货单
  UpdateStockGoodsCredit(data, method) {
    return request({
      url: '/api/StockGoodsCredit/UpdateStockGoodsCredit',
      method: method || 'post',
      data: data
    })
  },
  // 退货-确认退货单
  SureStockGoodsCredit(data, method) {
    return request({
      url: '/api/StockGoodsCredit/SureStockGoodsCredit',
      method: method || 'post',
      data: data
    })
  },
  // 退货-删除退货单明细数据
  DeleteStockGoodsCreditDetail(data, method) {
    return request({
      url: '/api/StockGoodsCredit/DeleteStockGoodsCreditDetail',
      method: method || 'post',
      data: data
    })
  },
  // 退货-删除物品退货单数据
  DeleteStockGoodsCredit(data, method) {
    return request({
      url: '/api/StockGoodsCredit/DeleteStockGoodsCredit',
      method: method || 'post',
      data: data
    })
  },
  // 退货-作废
  VoidStockGoodsCredit(data, method) {
    return request({
      url: '/api/StockGoodsCredit/VoidStockGoodsCredit',
      method: method || 'post',
      data: data
    })
  },
  // 退货-删除物品退货单数据
  GetStockGoodsView(data, method) {
    return request({
      url: '/api/Business/GetStockGoodsView',
      method: method || 'post',
      data: data
    })
  },
  //  ******************************结存**************************
  // 结存-分页列表
  GetMatchPageStockBalances(data, method) {
    return request({
      url: '/api/StockBalance/PageQueryStockBalanceBillList',
      method: method || 'post',
      data: data
    })
  },
  // 结存-新增结存单
  AddStockBalance(data, method) {
    return request({
      url: '/api/StockBalance/CreateStockBalanceBill',
      method: method || 'post',
      data: data
    })
  },

  // 结存-修改结存单
  UpdateStockBalanceBill(data, method) {
    return request({
      url: '/api/StockBalance/UpdateStockBalanceBill',
      method: method || 'post',
      data: data
    })
  },

  //判断目标仓库目标年月是否存在结存单
  JuadgeIsHaveStockBalanceBill(data, method) {
    return request({
      url: '/api/StockBalance/JuadgeIsHaveStockBalanceBill',
      method: method || 'post',
      data: data
    })
  },

  // 结存-根据仓库和日期获取物品结存详情
  GetStockBalanceStockGoodsData(data, method) {
    return request({
      url: '/api/StockBalance/GetStockBalanceGoodsDataList',
      method: method || 'post',
      data: data
    })
  },
  // 结存-获取详情
  GetSingleStockBalance(data, method) {
    return request({
      url: '/api/StockBalance/GetStockBalanceBillDetail',
      method: method || 'post',
      data: data
    })
  },
  // 结存-确认结存单
  SureStockBalance(data, method) {
    return request({
      url: '/api/StockBalance/SureStockBalance',
      method: method || 'post',
      data: data
    })
  },
  // 结存--删除结存单
  DeleteStockBalance(data, method) {
    return request({
      url: '/api/StockBalance/DeleteStockBalanceBill',
      method: method || 'post',
      data: data
    })
  },
  //  ****************报废*******************start
  // 报废-分页获取所有报废单
  GetMatchPageGoodsScrapBills(data, method) {
    return request({
      url: '/api/GoodsScrapBill/GetMatchPageGoodsScrapBills',
      method: method || 'post',
      data: data
    })
  },
  // 报废-获取报废类型
  GetAllScrapBillType(data, method) {
    return request({
      url: '/api/GoodsScrapBill/GetAllScrapBillType',
      method: method || 'post',
      data: data
    })
  },
  // 报废-新建报废单
  AddGoodsScrapBill(data, method) {
    return request({
      url: '/api/GoodsScrapBill/AddGoodsScrapBill',
      method: method || 'post',
      data: data
    })
  },
  // 报废-根据code 获取物料分组带物料数量
  GetAllGoodsGroupData(data, method) {
    return request({
      url: 'api/GoodsGroup/GetAllGoodsGroupDataByCodeInBatch',
      method: method || 'post',
      data: data
    })
  },
  // 报废-修改报废单
  UpdateGoodsScrapBill(data, method) {
    return request({
      url: '/api/GoodsScrapBill/UpdateGoodsScrapBill',
      method: method || 'post',
      data: data
    })
  },
  // 报废-报废单单条详情
  GetSingleGoodsScrapBill(data, method) {
    return request({
      url: '/api/GoodsScrapBill/GetSingleGoodsScrapBill',
      method: method || 'post',
      data: data
    })
  },
  // 报废-报废单删除
  DeleteGoodsScrapBill(data, method) {
    return request({
      url: '/api/GoodsScrapBill/DeleteGoodsScrapBill',
      method: method || 'post',
      data: data
    })
  },
  // 报废-删除报废并删除明细
  DeleteScrapBillDetail(data, method) {
    return request({
      url: '/api/GoodsScrapBill/DeleteScrapBillDetail',
      method: method || 'post',
      data: data
    })
  },
  // 报废-确认报废
  SureGoodsScrapBill(data, method) {
    return request({
      url: '/api/GoodsScrapBill/SureGoodsScrapBill',
      method: method || 'post',
      data: data
    })
  },
  // 报废-报废物料列表
  GetMatchPageStockGoodsDataByCode(data, method) {
    return request({
      url: '/api/SelectStockGoods/GetMatchPageStockGoodsDataByCode',
      method: method || 'post',
      data: data
    })
  },
  //* *******************************出库****************************start
  // 出库-分页获取匹配的领料出库数据
  GetMatchPageLLOutStockBills(data, method) {
    return request({
      url: '/api/OutStockBill/GetMatchPageLLOutStockBills',
      method: method || 'post',
      data: data
    })
  },
  // 出库-获取领料出库详情
  GetSingleLLOutStockBill(data, method) {
    return request({
      url: '/api/OutStockBill/GetSingleLLOutStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 出库-获取匹配的生产领料单列表数据
  GetMatchProduceMaterialDataList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchProduceMaterialDataListByStock',
      method: method || 'post',
      data: data
    })
  },
  // 出库-新增领料出库 同意
  AddLLOutStockBill(data, method) {
    return request({
      url: '/api/OutStockBill/AddLLOutStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 拒绝生产领料单
  RefuseGetProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/RefuseGetProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  // 出库-分页获取匹配的报废出库数据
  GetMatchPageBFOutStockBills(data, method) {
    return request({
      url: '/api/OutStockBill/GetMatchPageBFOutStockBills',
      method: method || 'post',
      data: data
    })
  },
  // 出库-获取报废出库详情
  GetSingleBFOutStockBill(data, method) {
    return request({
      url: '/api/OutStockBill/GetSingleBFOutStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 出库-分页获取匹配的退货出库数据
  GetMatchPageTHOutStockBills(data, method) {
    return request({
      url: '/api/OutStockBill/GetMatchPageTHOutStockBills',
      method: method || 'post',
      data: data
    })
  },
  // 出库-获取退货出库详情
  GetSingleTHOutStockBill(data, method) {
    return request({
      url: '/api/OutStockBill/GetSingleTHOutStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 半成品出库-分页列表
  GetMatchPageOutStockProducts(data, method) {
    return request({
      url: '/api/OutStockProduct/GetMatchPageOutStockProducts',
      method: method || 'post',
      data: data
    })
  },
  // 半成品出库- 获取详情
  GetSingleOutStockProduct(data, method) {
    return request({
      url: '/api/ProductOutStockBill/GetSingleSemiProductOutStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 获取匹配的半成品领料单数据
  GetMatchGetSemiFinishedProductBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchGetSemiFinishedProductBillsByStock',
      method: method || 'post',
      data: data
    })
  },
  // 半成品出库-根据成品编码获取库存信息
  GetProductPackageGuiGeInfo(data, method) {
    return request({
      url: '/api/OutStockProduct/GetProductPackageGuiGeInfo',
      method: method || 'post',
      data: data
    })
  },
  // 半成品出库-新增出库 同意
  AddOutStockProduct(data, method) {
    return request({
      url: '/api/ProductOutStockBill/CreateSemiProductOutStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 拒绝半成品领料单
  RefuseGetSemiFinishedProductBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/RefuseGetSemiFinishedProductBill',
      method: method || 'post',
      data: data
    })
  },
  // 成品出库-分页匹配成品数据
  GetMatchPageCPOutStockProducts(data, method) {
    return request({
      url: '/api/OutStockProduct/GetMatchPageCPOutStockProducts',
      method: method || 'post',
      data: data
    })
  },
  // 成品出库-选择发货单
  GetMatchProduceLogisticss(data, method) {
    return request({
      url: '/api/OrderBusniess/GetMatchSaleOrderDeliveryList',
      method: method || 'post',
      data: data
    })
  },
  // 成品出库-新增出库 同意
  CreateProductOutStockBill(data, method) {
    return request({
      url: '/api/ProductOutStockBill/CreateProductOutStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 成品出库-获取详情
  GetSingleCPOutStockProduct(data, method) {
    return request({
      url: '/api/ProductOutStockBill/GetSingleProductOutStockBill',
      method: method || 'post',
      data: data
    })
  },
  //* *******************************出库****************************end
  //* *******************************库存查询****************************start
  // 库存查询-成品查询
  GetMatchPageStockProductInfoOV(data, method) {
    return request({
      url: '/api/FinishedProduct/QueryFinishedProductStockQuantityDataList',
      method: method || 'post',
      data: data
    })
  },
  // 库存查询-物料查询
  GetMatchPageSelectStockGoods(data, method) {
    return request({
      url: '/api/Goods/GetMatchPageSelectStockGoods',
      method: method || 'post',
      data: data
    })
  },

  // 获取批量打印生产领料出库单列表数据
  GetProduceGetMaterialOutStockBillList(data, method) {
    return request({
      url: '/api/Warehouse/GetProduceGetMaterialOutStockBillList',
      method: method || 'post',
      data: data
    })
  },

  // 批量修改生产领料出库单打印状态
  BatchUpdateScLlBillsPrintState(data, method) {
    return request({
      url: '/api/Warehouse/BatchUpdateScLlBillsPrintState',
      method: method || 'post',
      data: data
    })
  },

  // 保存生产领料明细项
  SaveGetProduceMaterialMxItems(data, method) {
    return request({
      url: '/api/ProductionBusniess/SaveGetProduceMaterialMxItems',
      method: method || 'post',
      data: data
    })
  },

  // 获取生产领料单明细数据
  GetProduceMaterialBillDetail(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceMaterialBillDetail',
      method: method || 'post',
      data: data
    })
  },

   // 获取部门
   GetDepartmentTreeData(data, method) {
    return request({
      url: '/api/Department/GetDepartmentTreeData',
      method: method || 'post',
      data: data
    })
  },
  // 库存查询-物料查询获取物料分类
  GetDictionaryByCode(data, method) {
    return request({
      url: '/api/Business/GetDictionaryByCode',
      method: method || 'post',
      params: data
    })
  },
  // 库存查询-成品明细
  GetMatchPageProductStockChangeLogDataList(data, method) {
    return request({
      url: '/api/FinishedProduct/GetMatchPageProductStockChangeLogDataList',
      method: method || 'post',
      data: data
    })
  },

  // 库存查询-半成品明细
  GetMatchPageSemiProductStockChangeLogDataList(data, method) {
    return request({
      url: '/api/FinishedProduct/GetMatchPageSemiProductStockChangeLogDataList',
      method: method || 'post',
      data: data
    })
  },
  // 库存查询-物料明细
  GetMatchPageSelectStockGoodsDetail(data, method) {
    return request({
      url: '/api/Goods/GetMatchPageSelectStockGoodsDetail',
      method: method || 'post',
      data: data
    })
  },

  //分页获取物料库存列表数据
  GetPageStockGoodsDetailListView(data, method) {
    return request({
      url: '/api/Goods/GetPageStockGoodsDetailListView',
      method: method || 'post',
      data: data
    })
  },
  //* *******************************缴库入库****************************start
  // 缴库入库-分页列表
  GetMatchPageInStockProducts(data, method) {
    return request({
      url: '/api/ProductInStock/GetMatchPageProductInStockBills', 
      method: method || 'post',
      data: data
    })
  },
  // 缴库入库-获取匹配的生产缴库单列表数据
  GetMatchProductHandInBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchProductHandInBillsByStock',
      method: method || 'post',
      data: data
    })
  },
  // 缴库入库-成品入库-新增入库
  AddInStockProduct(data, method) {
    return request({
      url: '/api/ProductInStock/CreateProductInStockBill',
      method: method || 'post',
      data: data
    })
  },


  CreateSemiProductInStockBill(data, method) {
    return request({
      url: '/api/ProductInStock/CreateSemiProductInStockBill',
      method: method || 'post',
      data: data
    })
  },


  //获取全部库位数据tree
  GetAllAreaShelfDataList(data, method) {
    return request({
      url: '/api/Warehouse/GetAllAreaShelfDataList',
      method: method || 'post',
      data: data
    })
  },

  //批量修改库存物料所在库位
  BatchUpdateStockGoodsKw(data, method) {
    return request({
      url: '/api/Warehouse/BatchUpdateStockGoodsKw',
      method: method || 'post',
      data: data
    })
  },

  //成品库存批量修改库存物料所在库位
  BatchUpdateStockProductKw(data, method) {
    return request({
      url: '/api/Warehouse/BatchUpdateStockProductKw',
      method: method || 'post',
      data: data
    })
  },
  // 缴库入库-拒绝生产缴库单
  RefuseProductHandInBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/RefuseProductHandInBill',
      method: method || 'post',
      data: data
    })
  },
  // 缴库入库-查看详情
  GetSingleInStockProduct(data, method) {
    return request({
      url: '/api/ProductInStock/GetSingleProductInStockBill',
      method: method || 'post',
      data: data
    })
  },
  //* *******************************退料入库****************************start
  // 入库-退料入库列表
  GetMatchPageTLInStockBills(data, method) {
    return request({
      url: '/api/InStockBill/GetMatchPageTLInStockBills',
      method: method || 'post',
      data: data
    })
  },
  // 入库-退料入库详情
  GetSingleTLInStockBill(data, method) {
    return request({
      url: '/api/InStockBill/GetSingleTLInStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 入库-退料入库新增数据
  AddTLInStockBill(data, method) {
    return request({
      url: '/api/InStockBill/AddTLInStockBill',
      method: method || 'post',
      data: data
    })
  },
  // 入库-获取匹配的生产退料单列表数据
  GetMatchBackProduceMaterialBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchBackProduceMaterialBillsByStock',
      method: method || 'post',
      data: data
    })
  },
  // 入库-拒绝生产退料单
  RefuseBackProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/RefuseBackProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  //  成品/半成品报废申请 *****************************
  // 获取成品/半成品报废申请单明细数据
  GetFinishedProductScrapBillDetail(data, method) {
    return request({
      url: '/api/Warehouse/GetFinishedProductScrapBillDetail',
      method: method || 'post',
      data: data
    })
  },
  // 获取成品/半成品报废申请单列表
  GetMatchPageFinishedProductScrapBills(data, method) {
    return request({
      url: '/api/Warehouse/GetMatchPageFinishedProductScrapBills',
      method: method || 'post',
      data: data
    })
  },
  // 获取匹配的成品/半成品列表数据
  GetMatchFinishedProductDataList(data, method) {
    return request({
      url: '/api/Warehouse/GetMatchFinishedProductDataList',
      method: method || 'post',
      data: data
    })
  },
  // 新建成品/半成品报废申请单
  CreateNewFinishedProductScrapBill(data, method) {
    return request({
      url: '/api/Warehouse/CreateNewFinishedProductScrapBill',
      method: method || 'post',
      data: data
    })
  },
  // 修改成品/半成品报废申请单
  UpdateFinishedProductScrapBill(data, method) {
    return request({
      url: '/api/Warehouse/UpdateFinishedProductScrapBill',
      method: method || 'post',
      data: data
    })
  },
  // 删除成品/半成品报废申请单
  DeleteFinishedProductScrapBill(data, method) {
    return request({
      url: '/api/Warehouse/DeleteFinishedProductScrapBill',
      method: method || 'post',
      data: data
    })
  },
  // 确认成品/半成品报废单
  SureFinishedProductScrapBill(data, method) {
    return request({
      url: '/api/Warehouse/SureFinishedProductScrapBill',
      method: method || 'post',
      data: data
    })
  },
  // 分页获取成品/半成品报废出库单列表数据
  GetMatchPageCPScrapOutStockBillDataList(data, method) {
    return request({
      url: '/api/Warehouse/GetMatchPageCPScrapOutStockBillDataList',
      method: method || 'post',
      data: data
    })
  },
  // 获取成品/半成品报废出库单详情数据
  GetCPScrapOutStockBillDetail(data, method) {
    return request({
      url: '/api/Warehouse/GetCPScrapOutStockBillDetail',
      method: method || 'post',
      data: data
    })
  },

  // 分页获取物料库存列表数据
  GetPageStockGoodsListView(data, method) {
    return request({
      url: '/api/Goods/GetPageStockGoodsListView',
      method: method || 'post',
      data: data
    })
  },

  // 作废采购单
  VoidPurchaseOrder(data, method) {
    return request({
      url: '/api/GoodsPurchaseOrder/VoidPurchaseOrder',
      method: method || 'post',
      data: data
    })
  },

  // 分页获取物料入库列表
  GetPageInStockBillList(data, method) {
    return request({
      url: '/api/InStockBill/GetPageInStockBillList',
      method: method || 'post',
      data: data
    })
  },

  // 分页获取物料入库的申请单
  GetPageInStockRequestBillList(data, method) {
    return request({
      url: '/api/InStockBill/GetPageInStockRequestBillList',
      method: method || 'post',
      data: data
    })
  },

  // 获取物料入库的申请单明细
  GetInStockRequestDetailBillList(data, method) {
    return request({
      url: '/api/InStockBill/GetInStockRequestDetailBillList',
      method: method || 'post',
      data: data
    })
  },

  // 创建物料入库单
  AddInStockBill(data, method) {
    return request({
      url: '/api/InStockBill/AddInStockBill',
      method: method || 'post',
      data: data
    })
  },

  // 获得物料入库类型数据列表
  GetGoodsInStockTypeDataList(data, method) {
    return request({
      url: '/api/System/GetGoodsInStockTypeDataList',
      method: method || 'post',
      data: data
    })
  },

  // 新增生产批次
  AddProductionBatch(data, method) {
    return request({
      url: '/api/InStockBill/AddProductionBatch',
      method: method || 'post',
      data: data
    })
  },

  // 获取单条入库单信息
  GetSingleInStockBillView(data, method) {
    return request({
      url: '/api/InStockBill/GetSingleInStockBillView',
      method: method || 'post',
      data: data
    })
  },

  // 修改退料入库单
  UpdateInStockBill(data, method) {
    return request({
      url: '/api/InStockBill/UpdateInStockBill',
      method: method || 'post',
      data: data
    })
  },

  // 修改入库单状态
  UpdateInStockBillState(data, method) {
    return request({
      url: '/api/InStockBill/UpdateInStockBillState',
      method: method || 'post',
      data: data
    })
  },

  // 修改退货单状态
  UpdateStockGoodsCreditState(data, method) {
    return request({
      url: '/api/StockGoodsCredit/UpdateStockGoodsCreditState',
      method: method || 'post',
      data: data
    })
  },
  
  // 分页获取物料出库列表
  GetOutStockBillPageView(data, method) {
    return request({
      url: '/api/OutStockBill/GetOutStockBillPageView',
      method: method || 'post',
      data: data
    })
  },

  // 获取申请单明细数据
  GetOutStockRequestDetailViewList(data, method) {
    return request({
      url: '/api/OutStockBill/GetOutStockRequestDetailViewList',
      method: method || 'post',
      data: data
    })
  },

  // 分页获取申请单出库列表
  GetRequestOutStockPageList(data, method) {
    return request({
      url: '/api/OutStockBill/GetRequestOutStockPageList',
      method: method || 'post',
      data: data
    })
  },
  // 获取物料出库类型
  GetGoodsOutStockTypeDataList(data, method) {
    return request({
      url: '/api/System/GetGoodsOutStockTypeDataList',
      method: method || 'post',
      data: data
    })
  },
  
  // 获取单条物料出库信息
  GetSingleOutStockBillView(data, method) {
    return request({
      url: '/api/OutStockBill/GetSingleOutStockBillView',
      method: method || 'post',
      data: data
    })
  },

  // 创建物料出库单
  CreateOutStockBill(data, method) {
    return request({
      url: '/api/OutStockBill/CreateOutStockBill',
      method: method || 'post',
      data: data
    })
  },

  // 修改物料出库单
  UpdateOutStockBill(data, method) {
    return request({
      url: '/api/OutStockBill/UpdateOutStockBill',
      method: method || 'post',
      data: data
    })
  },

  // 修改退货单状态
  UpdateOutStockState(data, method) {
    return request({
      url: '/api/OutStockBill/UpdateOutStockState',
      method: method || 'post',
      data: data
    })
  },

  // 确认退货单
  SureStockGoodsCredit(data, method) {
    return request({
      url: '/api/StockGoodsCredit/SureStockGoodsCredit',
      method: method || 'post',
      data: data
    })
  },

  // 分页获取成品库存数据
  GetFinishedProductStockPageList(data, method) {
    return request({
      url: '/api/FinishedProduct/GetFinishedProductStockPageList',
      method: method || 'post',
      data: data
    })
  },

  // 分页获取成品库存明细数据
  GetFinishedProductStockDetailPageList(data, method) {
    return request({
      url: '/api/FinishedProduct/GetFinishedProductStockDetailPageList',
      method: method || 'post',
      data: data
    })
  },

  // 根据发货单号获取出库单详情
  GetOutStockDetailListByDeliveryNo(data, method) {
    return request({
      url: '/api/ProductOutStockBill/GetOutStockDetailListByDeliveryNo',
      method: method || 'post',
      data: data
    })
  },

  // 获取出库单详情
  GetOutStockDetailListByOutStockNo(data, method) {
    return request({
      url: '/api/ProductOutStockBill/GetOutStockDetailListByOutStockNo',
      method: method || 'post',
      data: data
    })
  },

  // 新建物料核价单
  AddGoodsPriceAdjustment(data, method) {
    return request({
      url: '/api/GoodsPriceAdjustment/AddGoodsPriceAdjustment',
      method: method || 'post',
      data: data
    })
  },

  // 分页获取物料核价列表
  GetPageGoodsPriceAdjustment(data, method) {
    return request({
      url: '/api/GoodsPriceAdjustment/GetPageGoodsPriceAdjustment',
      method: method || 'post',
      data: data
    })
  },

  // 获取核价单详情
  GetGoodsPriceAdjustmentByCode(data, method) {
    return request({
      url: '/api/GoodsPriceAdjustment/GetGoodsPriceAdjustmentByCode',
      method: method || 'post',
      data: data
    })
  },

  // 修改核价单
  UpdateGoodsPriceAdjustment(data, method) {
    return request({
      url: '/api/GoodsPriceAdjustment/UpdateGoodsPriceAdjustment',
      method: method || 'post',
      data: data
    })
  },
  
  // 修改核价单状态
  UpdateGoodsPriceAdjustmentState(data, method) {
    return request({
      url: '/api/GoodsPriceAdjustment/UpdateGoodsPriceAdjustmentState',
      method: method || 'post',
      data: data
    })
  },

  // 分页获取物料库存变动日志
  GetPageStockGoodsLog(data, method) {
    return request({
      url: '/api/StockGoods/GetPageStockGoodsLog',
      method: method || 'post',
      data: data
    })
  },

  // 分页查询成品库存变化明细数据
  GetPageProductStockChangeLogList(data, method) {
    return request({
      url: '/api/FinishedProduct/GetPageProductStockChangeLogList',
      method: method || 'post',
      data: data
    })
  },

  // 修改仓库分区货架数据
  UpdateAreaShelf(data, method) {
    return request({
      url: '/api/WarehouseAreaShelf/UpdateAreaShelf',
      method: method || 'post',
      data: data
    })
  },

}
export default api
